curl --request POST \
--url https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/{id}/hosting/associate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hosting_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"configure_dns": true
}
'{
"domain_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hosting_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hosting_domain": "<string>",
"dns_configured": true
}Associate a domain with a web hosting service. This links the domain to the hosting account and optionally configures DNS records to point to the hosting server. When configure_dns is true, A and CNAME records are automatically created for the root domain and www subdomain pointing to the hosting server IP.
curl --request POST \
--url https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/{id}/hosting/associate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hosting_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"configure_dns": true
}
'{
"domain_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hosting_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hosting_domain": "<string>",
"dns_configured": true
}Documentation Index
Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
Use this file to discover all available pages before exploring further.
Use Authorization: Bearer <token> header. Token can be a JWT token or an API key (format: sk-onetsolutions-...).
The unique identifier (UUID) of the domain